NotificationManager = {
		
		container : null,
		
		queue : 5,
		
		initialize : function(container) {
			NotificationManager.container = container;
			NotificationManager.container.notify({stack:'above'});
			
			//NotificationManager.defaultNotification("Default", "Default notification");
			//NotificationManager.alertNotification("Alert","Alert notification", 10000);
			
			
			//NotificationManager.fatalNotification("Fatal","Fatal notification");
		},
		
		create : function(template, vars, options){
			return NotificationManager.container.notify("create", template, vars, options);
		},
		
		
		defaultNotification : function(notTitle, notText) {
			NotificationManager.create("queueing", {
	            title:notTitle, text: notText }, { queue: NotificationManager.queue });
		},
		
		alertNotification : function(notTitle, notText, expireTime) {
			if(expireTime == null) expireTime = 5000;
			NotificationManager.create("alert", {
	            title:notTitle, text: notText, icon:'/resources/css/img/alert.png' }, { expires: expireTime });
		},
		
		// do wystylowania
		fatalNotification : function(notTitle, notText) {
			NotificationManager.create("fatal", {
	            title:notTitle, text: notText }, { custom : true, expires : false });
		}
		
		
};